package com.grt.common.convert.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import com.grt.admin.domain.Case;
import com.grt.admin.domain.dto.CaseDTO;
import com.grt.common.convert.DTOConvertDO;

@Component
public class CaseDTOConvertDO implements DTOConvertDO<CaseDTO, Case> {

	@Override
	public Case convert(CaseDTO caseDTO) {
		Case oCase = new Case();
		BeanUtils.copyProperties(caseDTO, oCase);
		return oCase;
	}

}
